<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" %>
<%@ include file="/resources/modular/plugin/taglibs.jsp" %>
<!doctype html>
<head content="-我的">
    <%@ include file="/resources/modular/head/inside_head.jsp" %>
</head>
<body class="GC_Menu_7" name="GC_indvidual">

<%@ include file="/resources/modular/plugin/mainMenu.jsp" %>

<div class="page" name="GC_individual_balance">

    <div class="page">
        <div class="my_cash_ingdv">
            <p>
                <span>提现方式：</span>
                <span class="my_cash_ingway">银行卡</span>
            </p>
            <p>
                <span>余额：</span>
                <input id="GC_withdrawal_amount" type="number" placeholder="请输入提现金额">
                <!--<a style="color:#38adff;margin-left:30px;" href="javascript:;">全部提现</a>--><br>
                <span class="my_cash_ing_point">*可提现余额 <f
                        id="GC_withdrawal_availableamount">${GC_cashBalance}</f> 元</span>
            </p>
            <p>
                <span>手续费：</span>
                <strong>￥
                    <f id="GC_withdrawal_poundage">0.00</f>
                </strong><br>
                <span class="my_cash_ing_point">*银行收取千分之六的手续费</span>
            </p>
            <p>
                <span>实际到账：</span>
                <strong>￥
                    <f id="GC_withdrawal_actualamount">0.00</f>
                </strong>
            </p>
            <div><a class="my_cash_ingbtn" href="javascript:;">确认</a></div>
        </div>

    </div>

</div>
</body>
</html>
<%@ include file="/resources/modular/foot/inside_footer.jsp" %>
<script language="javascript" src="${basePath}resources/js/v2/utils.js"></script>
<script type="text/javascript">

    var rale = ${rate};

    $("#GC_withdrawal_amount").keyup(function () {
        var availableamount = $("#GC_withdrawal_availableamount").text();
        var amount = $("#GC_withdrawal_amount").val();
        if(amount > moneyToNumFiled(availableamount)){
            alert("提现金额不能超出可当期余额");
        }else if(amount > 0){
           var poundage = amount * rale;
            $("#GC_withdrawal_poundage").text(poundage);
            var actualamount = amount - poundage;
            $("#GC_withdrawal_actualamount").text(actualamount);
        }
    });

</script>